package com.maybach.core.template.impl;

        import org.springframework.stereotype.Component;

        import java.util.Map;

/**
 * Created by houenxun on 16/3/7.
 */
@Component
public class ConfirmOrderTemplate extends AbstractTemplate {
    @Override
    public String getCode() {
        return "confirmOrder";
    }

    @Override
    public String getTemplate() {
        return "您的订单宝申请$!{loanOrder.orderNo}（$!{loanOrder.orderName}）已经审批通过，请上传相关交易资料。";
    }


    @Override
    public boolean checkParams(Map<String, Object> params) {
        if (null != params) {
            if (params.containsKey("loanOrder")) {
                return true;
            }
        }
        return false;
    }

    @Override
    public String getTitle() {
        return "订单宝审批状态变更通知";
    }
}
